﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SuoyinqiDemo
{
    public class Records
    {
        public List<Record> recordList = new List<Record>();

        public void AddRecord(Record record)
        {
            recordList.Add(record);
        }

        public Record this[int index]
        {
            get {
                if (index >= 0 && index < recordList.Count)
                {
                    return recordList[index];
                }
                else
                {
                    return null;
                }
            }
            set {
                if (index >= 0 && index < recordList.Count)
                {
                    recordList[index] = value;
                }
            }
        }
    }
}
